ga.core.algorithm.util
Class RandomSingleton

java.lang.Object
  extended by ga.core.algorithm.util.RandomSingleton

public final class RandomSingleton
extends java.lang.Object

Utility class that holds a single instance of a MersenneTwister random.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
private static java.util.Random rnd
           
 
Constructor Summary
private RandomSingleton()
          Instantiation is not allowed.
 
Method Summary
static java.util.Random getRandom()
          Getter for the single instance of the MersenneTwister random.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rnd

private static java.util.Random rnd
Constructor Detail

RandomSingleton

private RandomSingleton()
Instantiation is not allowed.

Since:
11.08.2012
Method Detail

getRandom

public static java.util.Random getRandom()
Getter for the single instance of the MersenneTwister random.

Returns:
The random.
Since:
11.08.2012